package com.bean;

/**
 * @author: cxt
 * @time: 2022/9/21
 */
public class TestJavaBean {
    private String name;

    public TestJavaBean(String name) {
        System.out.println("y");
        this.name = name;
    }

    public TestJavaBean() {
        this("ddd");
        System.out.println("n");
        System.out.println(name);
    }

    public void fun() {
        System.out.println(this);
    }

    public static void main(String[] args) {
        TestJavaBean bean = new TestJavaBean();
        bean.fun();
    }
}
